<?php

namespace app\api\model\paper;

use app\common\model\paper\RecordQuestion as RecordQuestionModel;

/**
 * 课程模型
 */
class RecordQuestion extends RecordQuestionModel
{
    /**
     * 隐藏字段
     */
    protected $hidden = [];

    //获取列表

    public function getListarr($data)
    {
        $model = $this;
        $list = $model->with(['user'])
            ->order(['score' => 'desc'])
            ->field('user_id,score,create_time')
            ->paginate($data);
        return $list;
    }
}